﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/Vista/MasterPage.Master" AutoEventWireup="true" CodeBehind="AgregarUsuario.aspx.cs" Inherits="ApuestaJMG.GUI.AgregarUsuario" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style1
    {
        width: 401px;
    }
    .style2
    {
        width: 172px;
    }
    .modalBackground 
    { 
    background-color: Gray; 
    filter: alpha(opacity=50); 
    opacity: 0.50; 
    } 
 
    .updateProgress 
    { 
    border-width: 1px; 
    border-style: solid; 
    background-color: #FFFFFF; 
    position: absolute; 
    
    } 

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  
    <table>
    <tr>
        <td colspan=2 align=center> REGISTRO</td>
    </tr>
    <tr>
        <td align=right class="style2">Nombre:</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtNombre" runat="server" MaxLength= "20" >
            </asp:TextBox>
            
            <asp:FilteredTextBoxExtender ID="TxtNombre_FilteredTextBoxExtender" 
             runat="server" Enabled="True" TargetControlID="TxtNombre" FilterType="Custom" FilterMode="ValidChars" 
             ValidChars="qwertyuiopñlkjhgfdsazxcvbnmQWERTYUIOPÑLKJHGFDSAZXCVBNM " >
            </asp:FilteredTextBoxExtender>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtNombre" Display="Dynamic" ></asp:RequiredFieldValidator>
            
        </td>
    </tr>
    <tr>
        <td align=right class="style2">Apellido</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtApellido" runat="server" MaxLength= "20"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtApellido_FilteredTextBoxExtender" FilterType="Custom" FilterMode="ValidChars"
             ValidChars="qwertyuiopñlkjhgfdsazxcvbnmQWERTYUIOPÑLKJHGFDSAZXCVBNM "
                runat="server" Enabled="True" TargetControlID="TxtApellido">
            </asp:FilteredTextBoxExtender>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtApellido" Display="Dynamic" ></asp:RequiredFieldValidator>
            
        </td>
    </tr>
    <tr>
     <td align=right class="style2">Cedula</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtCedula" runat="server" MaxLength="8"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtCedula_FilteredTextBoxExtender" FilterType="Numbers"
                runat="server" Enabled="True" TargetControlID="TxtCedula">
            </asp:FilteredTextBoxExtender>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtCedula" Display="Dynamic" ></asp:RequiredFieldValidator>
            
        </td>
    </tr>
    <tr>
    <td align=right class="style2">Email</td>
    <td align=left class="style1">
            <asp:TextBox ID="TxtEmail" runat="server"  MaxLength ="30" ForeColor="Blue"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtEmail_FilteredTextBoxExtender" 
                runat="server" Enabled="True" TargetControlID="TxtEmail" FilterType="LowercaseLetters,Custom,Numbers" FilterMode="ValidChars" ValidChars="@.-_">
            </asp:FilteredTextBoxExtender>
     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtEmail" Display="Dynamic" ></asp:RequiredFieldValidator>
            
               
    </tr>
        
    <tr>
    <td align=right class="style2">Telefono</td>
    <td align=left class="style1">
            <asp:TextBox ID="TxtTelefono" runat="server" MaxLength="11"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtTelefono_FilteredTextBoxExtender" FilterType="Numbers"
                runat="server" Enabled="True" TargetControlID="TxtTelefono">
            </asp:FilteredTextBoxExtender>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtTelefono" Display="Dynamic" ></asp:RequiredFieldValidator>
     </td>       
    </tr>
    <tr>
        <td align=right class="style2">Login</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtLogin" runat="server" MaxLength="50"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TxtLogin_FilteredTextBoxExtender"  FilterMode="InvalidChars" InvalidChars="!·$%&/()=?¿>}{][,.->,.:;¨Ç+¡'<Ç¨_:;^*Ç~@|#~&#8364;¬][}{>"
                runat="server" Enabled="True" TargetControlID="TxtLogin">
            </asp:FilteredTextBoxExtender>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtLogin" Display="Dynamic" ></asp:RequiredFieldValidator>
            
        </td>
    </tr>
    <tr>
        <td align=right class="style2">Contraseña</td>
        <td align=left class="style1">
            <asp:TextBox ID="TxtContraseña" runat="server" MaxLength="20" TextMode="Password"></asp:TextBox>

          
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtContraseña" Display="Dynamic" ></asp:RequiredFieldValidator>
           
            
        </td>
        
    </tr>
    <tr>
        <td align=right class="style2">Repetir Contraseña</td>
         <td align=left class="style1">
            <asp:TextBox ID="TxtRepetirContraseña" runat="server" MaxLength="20" TextMode="Password"></asp:TextBox>
            <asp:CompareValidator Type="String" Operator="Equal" ID="CompareValidator1" ForeColor="Red" runat="server" ErrorMessage="Contraseña erronea" ControlToCompare="TxtContraseña" ControlToValidate="TxtRepetirContraseña" Display="Dynamic"></asp:CompareValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"  ErrorMessage="Llenar campo" ForeColor="Red" ControlToValidate="TxtRepetirContraseña" Display="Dynamic" ></asp:RequiredFieldValidator>
            
        </td>
    </tr>
   <tr>
        <td align=right class="style2">Rol</td>
        <td align=left class="style1" id="1">
            <asp:DropDownList ID="Roles" runat="server" 
                OnSelectedIndexChanged= "Roles_SelectedIndexChanged">
                
            </asp:DropDownList>
           
        </td>
        
    </tr>
        <tr>
        <td colspan=2 align=center> 
          
            <asp:Button ID="cmdRegistrar" runat="server" onclick="Button1_Click" 
                Text="Registrar" />
           <asp:Button ID="cmdCancelar" runat="server" Text="Cancelar"  PostBackUrl="~/GUI/Vista/Inicio.aspx"
        onclick="cmdCancelar_Click" onclientclick="~/GUI/Vista/Inicio.aspx"  />

       </td>
      
          
        
       
    </tr>
    
    </table>
 

 


</asp:Content>
